"""
循环嵌套
# 循环里面套循环
for i in range(1,5):
    for j in range(1,5):

"""
# for i in range(1,5):
#     print("i:", i)
#     for j in range(1,5):
#         print("j:",j)


# i=1
# while i<5:
#     print("i:", i)
#     j=1
#     while j<5:
#         print("j:",j)
#         j+=1
#     i+=1
"""
*******
*******
*******
*******

"""
# 外层控制的行数,内层控制的内行的个数
# for i in range(1,5):  #行数
#     for j in range(1,8):
#         print("*",end="")
#     print()

for a in range(1,6):
    print("*"*a)

for a in range(1, 6):
    for b in range(a):
        print("*", end="")
    print()

"""
if 
while
for



"""













